package cn.edu.stu.syllabus.repository.oaFile;

import java.util.List;

import javax.inject.Inject;

import cn.edu.stu.syllabus.repository.oaFile.local.OaFileEntry;
import cn.edu.stu.syllabus.di.qualifier.Remote;
import cn.edu.stu.syllabus.di.scope.FragmentScoped;
import rx.Observable;

/**
 * Created by daidaijie on 2017/3/23.
 */

@FragmentScoped
public class OaFileDataRepository implements OaFileDataSource {

    private OaFileDataSource mOaFileRemoteDataSource;

    @Inject
    public OaFileDataRepository(@Remote OaFileDataSource oaFileRemoteDataSource) {
        mOaFileRemoteDataSource = oaFileRemoteDataSource;
    }

    @Override
    public Observable<List<OaFileEntry>> getOaFileEntry(long docId) {
        return mOaFileRemoteDataSource.getOaFileEntry(docId);
    }
}
